#!/usr/bin/env groovy
import static java.lang.System.*
import static java.util.Date.*
import static javax.swing.JOptionPane.*

textArea.with{
    def jEdit = Class.forName("org.gjt.sp.jedit.jEdit")
    def propfile = new File(getProperty("user.home") + "/.jedit/properties")
    
    jEdit.openFile(view, propfile.path)
    println text
    text = text.readLines().findAll{
        !(it =~ /.*shortcut=.*/)
    }.join("\n")
    
}

